package com.flying.client.ui;

import org.jboss.netty.buffer.ChannelBuffer;

import com.flying.client.network.IMsgSink;
import com.flying.client.network.msg.OWMsg;
import com.flying.client.utils.Logger;

public class TestOWMsg extends OWMsg {

	private static final Logger logger = Logger.getLogger(TestOWMsg.class.getName());
	
	public TestOWMsg(short msgType) {
		this(msgType, null);
	}
	
	public TestOWMsg(short msgType,ChannelBuffer buffer)
	{
		super(msgType,buffer);
		
		this.msgSink = new TestMsgSink();
		needFeedback = true;
	}
	
	class TestMsgSink implements IMsgSink
	{

		@Override
		public void onSended() {
			logger.debug("onSended.");
		}

		@Override
		public void onError() {
			logger.debug("onError.");
		}

		@Override
		public void onTimeout() {
			logger.debug("onTimeout");
		}
		
	}
}
